use crate::db;
use wanmesh_common::error::{ResponseError, ResponseErrorAny};

#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error("{0}")]
    ResponseError(#[from] ResponseError),
    #[error("{0}")]
    ResponseErrorAny(#[from] ResponseErrorAny),
    #[error("{0}")]
    DbError(#[from] db::DbErr),
    #[error("{0}")]
    Other(#[from] anyhow::Error),
}